package com.zou.practice.proxy;

/**
 * @author zouyaowen
 * @date 2020-09-08
 */
public class ServiceAgent implements Service {

    private ServiceImpl service;

    public ServiceAgent(ServiceImpl service) {
        this.service = service;
    }

    @Override
    public void sale() {
        service.sale();
    }

    @Override
    public void expand() {
        service.expand();
    }
}
